// Created by liusc on 2020/7/28--11:17.
<template>
    <div class="page-box">
			<dataList
				placeholder="请输入预算编号或者申请名称"
				:pageInfo="pager"
				:listData="tableData"
				searchName="budgetCode"
				:menuList="['add']"
				@menu-click="handleMenuClick">
				<el-table :data="tableData" align="center" ref="multipleTable">
					<el-table-column label="预算编号" prop="budgetCode"></el-table-column>
					<el-table-column label="申请时间" prop="applyDate"></el-table-column>
					<el-table-column label="申请名称" prop="applyName"></el-table-column>
					<el-table-column label="申请部门" prop="applyDept" :formatter="dictVal_department"></el-table-column>
					<el-table-column label="申请资金(元)" prop="applySum"></el-table-column>
					<el-table-column label="审批状态" prop="checkStatus" :formatter="dictVal_status"></el-table-column>
					<el-table-column
						width="100px"
						label="操作">
						<template slot-scope="scope">
							<el-button type="text" v-if="edit_button && scope.row.checkStatus==100 && scope.row.timeFlag==0" @click="toEditData(scope)">申报</el-button>
							<el-button type="text" v-if="edit_button && scope.row.checkStatus==101 && scope.row.isEdit==0" @click="toLookData(scope)">查看</el-button>
							<el-button type="text" v-if="edit_button && scope.row.checkStatus==101 && scope.row.isEdit==1" @click="toLookData2(scope)">查看</el-button>
							<el-button type="text" v-if="edit_button && scope.row.checkStatus==102 && scope.row.isEdit==0" @click="toLookData(scope)">查看</el-button>
							<el-button type="text" v-if="edit_button && scope.row.checkStatus==102 && scope.row.isEdit==1" @click="toLookData2(scope)">查看</el-button>
							<el-button type="text" v-if="edit_button && scope.row.checkStatus==103 && scope.row.isEdit==0" @click="toLookData(scope)">查看</el-button>
							<el-button type="text" v-if="edit_button && scope.row.checkStatus==103 && scope.row.isEdit==1" @click="toLookData2(scope)">查看</el-button>
						</template>
					</el-table-column>
				</el-table>
			</dataList>
    </div>
</template>

<script src="./apply_list.js"></script>
<style scoped lang="scss">
    @import "./apply_list";
</style>

